import request from "@/api/request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired, type QueryDto } from "../../interface";

/**
 * /sys/user/table
 */
export function getSysUserTable(params: GetSysUserTableParams, config?: AxiosRequestConfig) {
    const paramsInput = {
        ...params.queryDto,
    };
    return request.get<DeepRequired<any>>(`/sys/user/table`, {
        params: paramsInput,
        ...config,
    });
}

export interface GetSysUserTableParams {
    queryDto: QueryDto;
}
